#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/5/16 11:04
# @Author  : Leixu
# @Site    : 
# @File    : config.py
# @Software: PyCharm Community Edition

from __future__ import absolute_import

from kombu import Queue

CELERY_TASK_RESULT_EXPIRES = 3600
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_ACCEPT_CONTENT = ['json', 'pickle']
CELERY_RESULT_SERIALIZER = 'pickle'

CELERY_DEFAULT_EXCHANGE = 'agent'
CELERY_DEFAULT_EXCHANGE_TYPE = 'direct'


CELERY_QUEUES = {
    'machine4': {
        'exchange': 'machine4',
        'exchange_type': 'topic',
        'routing_key': 'machine4',
    },
    'machine2': {
        'exchange': 'machine2',
        'routing_key': 'machine2',
    },
}
